package app.routing;

import javax.validation.constraints.NotNull;

/**
 * @author somebody
 */
public class PathQueryRequestBody {
    @NotNull(message = "The starting node must NOT be empty")
    private final Long startingNode;
    @NotNull(message = "The destination node must NOT be empty")
    private final Long destinationNode;

    public PathQueryRequestBody(@NotNull Long startingNode, @NotNull Long destinationNode) {
        this.startingNode = startingNode;
        this.destinationNode = destinationNode;
    }

    public Long getStartingNode() {
        return startingNode;
    }

    public Long getDestinationNode() {
        return destinationNode;
    }
}
